
include ../makedefs

PGM = mainNonRT1

OBJS = main.o

LDFLAGS += -lmixr_models -lmixr_simulation -lJSBSim
LDFLAGS += -lmixr_instruments -lmixr_terrain
LDFLAGS += -lmixr_base
LDFLAGS += -lrt -lX11
#LDFLAGS += -lXi -lXmu
LDFLAGS += -lpthread

CPPFLAGS += -I/usr/local/include

all: edl $(PGM)

edl:
	cpp configs/test1.epp >test1.edl   $(EPPFLAGS)
	cpp configs/test2.epp >test2.edl   $(EPPFLAGS)

$(PGM): $(OBJS)
	$(CXX) -o $@ $(OBJS) $(LDFLAGS)

clean:
	-rm -f *.o
	-rm -f *.edl
	-rm -f $(PGM)
